package com.yao.sys.entity;


import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;

/**
* 用户表
*
* @author autoCode
* @version 1.0.0-SNAPSHOT
* @date 2020-03-23
*/
@Data
public class UserEntity implements Serializable {

private static final long serialVersionUID = 1L;

    /**
    * 自增主键
    */
    @TableId(value = "`id`", type = IdType.AUTO)
    private Integer id;
    /**
    * 有效状态0-有效
    */
    @TableField(value = "`status`", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_EMPTY)
    private Byte status;
    /**
    * 账户id
    */
    @TableField(value = "`accountId`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private Integer accountId;
    /**
    * 用户名
    */
    @TableField(value = "`userName`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private String userName;
    /**
    * 用户登陆密码
    */
    @TableField(value = "`password`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private String password;
    /**
    * 性别 1-女 2-男
    */
    @TableField(value = "`sex`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private String sex;
    /**
    * 身份证号
    */
    @TableField(value = "`idCard`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private String idCard;
    /**
    * 手机号
    */
    @TableField(value = "`phone`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private String phone;
    /**
    * 排序
    */
    @TableField(value = "`sort`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private Integer sort;
    /**
    * 创建时间
    */
    @TableField(value = "`createTime`", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
    * 更新时间
    */
    @TableField(value = "`updateTime`", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}